package wang.CollectionsTest;

import java.util.ArrayList;

import java.util.Collections;
import java.util.function.Consumer;

public class Method {
    public static void main(String[] args) {
        ArrayList<String> list =new ArrayList<>();
ArrayList<Integer> arrayList =new ArrayList<>();

        Collections.addAll(list,"wang","wahh","sss", "zhang");
        Collections.addAll(arrayList,1,85,56,2,13,546,12);
        Collections.shuffle(list);
        Collections.sort(arrayList);
        arrayList.forEach(integer -> System.out.println(integer));
        System.out.println(list);
    }
}
